package com.xjrh.traintravel.collector.netty.command.front;

import java.io.Serializable;

/**
 * 前置信息
 *
 * @author snps
 * @create 2022-02-07 11:31
 * @describe
 **/
public class FrontInfo implements Serializable {

    private static final long serialVersionUID = -2958067881856310227L;


    /**
     * COM口
     *      1：485-1
     *      2：485-2
     */
    private int com;

    /**
     * 设备编号
     */
    private String no;

    /**
     * 设备类型
     *      1: I型前置
     *      2: II型前置
     */
    private int type;

    /**
     * 软件版本
     */
    private String softwareVersion;

    /**
     * 硬件版本
     */
    private String hardwareVersion;


    /*****************************************
     * Getter and Setter
     */
    public int getCom() {
        return com;
    }

    public void setCom(int com) {
        this.com = com;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSoftwareVersion() {
        return softwareVersion;
    }

    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    public String getHardwareVersion() {
        return hardwareVersion;
    }

    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }


    @Override
    public String toString() {
        return "FrontInfo{" +
                "com=" + com +
                ", no='" + no + '\'' +
                ", type=" + type +
                ", softwareVersion='" + softwareVersion + '\'' +
                ", hardwareVersion='" + hardwareVersion + '\'' +
                '}';
    }

}